#include <stdio.h>

int main() 
{
    int n = 0;
    scanf("%d",&n);
    n >= 1 && n <= 2018;

    if ((n % 4 == 0 && n % 100 != 0) || (n % 400 == 0))
    {
        printf("yes");
    }
    else 
    {
        printf("no");
    }
    return 0;
}